package com.tencreat.service.im;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.HttpResult;
import com.tencreat.domain.im.ImCustomer;
import com.tencreat.domain.im.dto.OpenIMLoginDTO;
import com.tencreat.domain.im.vo.OpenIMResultVo;
import com.tencreat.domain.im.vo.OpenIMTokenVo;

/**
 * IM  客服Service接口
 *
 * @author tencreat
 * @company 深圳腾创互联科技有限公司
 * @link https://tencreat.com
 * @since 2023-11-22
 */
public interface IImCustomerService  extends IService<ImCustomer> {

    /**
     * 分页查询
     * @param iPage 分页参数
     * @param imCustomer 查询条件
     * @return 分页结果
     */
    IPage<ImCustomer> page(IPage<?> iPage, ImCustomer imCustomer);

    OpenIMResultVo<OpenIMTokenVo> loginIM(OpenIMLoginDTO openIMLoginDTO, Long uuid);

    OpenIMResultVo<OpenIMTokenVo> loginIMCustomer(ImCustomer imCustomer);
}